package com.itheima.controller;

import com.itheima.service.TestDeptServiceOne;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestTranscationController {
    @Autowired
    TestDeptServiceOne one;
    @RequestMapping("test")
    public String test() {
        one.insertDept();
        return "test";
    }
}
